import axios from 'axios';
//axios.create方法创建axios实例对象
const server = axios.create({
    baseURL: 'https://api.inews.qq.com/newsqa/v1/query/inner/publish/modules/list?modules=statisGradeCityDetail,diseaseh5Shelf', //请求后端数据的基本地址，自定义
    timeout: 6000  //请求超时设置，单位ms
})
export const getList = () => server.get('').then(res => {
    return res.data
}) //暴露一个返回值是接口数据的函数
